package avicit.bdp.dcs.utils;

import avicit.platform6.core.context.ThreadContextHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PlatformUtil {

    private static final Logger logger = LoggerFactory.getLogger(PlatformUtil.class);

    public static String getUserId(){
        String userId = null;
        try{
            userId = ThreadContextHelper.getUserId();
        }catch (Exception e){
            logger.error("获取平台用户ID失败", e);
        }
        logger.info("当前登录用户ID:{}", userId);
        return userId;
    }

}
